﻿<%@ Page Title="Student's Section Grades" Language="C#" MasterPageFile="~/masterpage.master" AutoEventWireup="true" CodeFile="StudentSectionGrades.aspx.cs" Inherits="StudentSectionGrades" %>

<%@ Register src="ucLetters.ascx" tagname="ucLetters" tagprefix="uc2" %>
<%@ Register assembly="Telerik.Web.UI" namespace="Telerik.Web.UI" tagprefix="telerik" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
  <link rel="stylesheet" type="text/css" href="css/admin.css" />
  <script language="javascript" type="text/javascript">
      var controldivname = 'ctl00_ContentPlaceHolder1_rgSudentSectionGrades';
  </script>
</asp:Content>


<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<telerik:radscriptmanager ID="RadScriptManager1" Runat="server"/>
<style>
    .GridHeader_Default
    {
        padding-top:2px !important;
        padding-bottom:1px !important;
    }
</style>
    <table style="width:900px;">
        <tr>
            <td>
	            <div class="wrap4">
                    <div class="abcd">
	                    <table width= "100%">
                        <tr>
	                        <td align="left" valign="middle" width="650">
                            <asp:HyperLink ID="hlStudentName" runat="server"></asp:HyperLink>
                            <asp:Label ID="lbStudentName" runat="server" Text="Student name"/>
                          </td>
		
		                      <td align="right">
                            <asp:ImageButton ImageUrl="Images/excel_icon2.png" ID="lbExport" runat="server" 
		                                onclick="lbExport_Click" ToolTip="Export to Excel" />
                          </td>
		                    </tr>
	                    </table>
                        <div class="clr">
                        </div>
                    </div>
                </div>
                <div class="clr"></div>
            </td>
        </tr>
    </table>

    <table style="width:900px;">
        <tr>
            <td align="left">                
                <telerik:radgrid ID="rgSudentSectionGrades" runat="server" AllowPaging="True" 
		            AllowSorting="False" Width="100%" PageSize="50"
	              CssClass="stats"	onsortcommand="rgSudentSectionGrades_SortCommand" 
		            onpageindexchanged="rgSudentSectionGrades_PageIndexChanged" OnItemCreated="rgSudentSectionGrades_ItemCreated"
                GridLines="None" AllowAutomaticUpdates="True" AutoGenerateColumns="False">
		
		            <HeaderStyle  Font-Bold="True" Font-Underline="False" Font-Size="9" HorizontalAlign="Center" />

                <HeaderContextMenu>
                  <CollapseAnimation Type="OutQuint" Duration="200"></CollapseAnimation>
                </HeaderContextMenu>
                <FilterMenu>
                  <CollapseAnimation Type="OutQuint" Duration="200"></CollapseAnimation>
                </FilterMenu>

                <ItemStyle BackColor="Silver" />
	              <AlternatingItemStyle BackColor="LightGray" />

                <MasterTableView>
				          <Columns>
                    <telerik:GridBoundColumn DataField="item_name" SortExpression="item_name" HeaderText="Item Name" UniqueName="item_name" HeaderStyle-Width="150"/>
                    <telerik:GridBoundColumn DataField="due_date" SortExpression="due_date" HeaderText="Due Date" UniqueName="due_date"
                                              DataType="System.DateTime" DataFormatString="{0:MMM dd, yyyy}" HeaderStyle-Width="100"/>
                    <telerik:GridBoundColumn DataField="last_student_activity" SortExpression="last_student_activity" HeaderText="Last Student Activity" UniqueName="last_student_activity"
                                              DataType="System.DateTime" DataFormatString="{0:MMM dd, yyyy hh:mm tt}" HeaderStyle-Width="100"/>
                    <telerik:GridBoundColumn DataField="last_teacher_activity" SortExpression="last_teacher_activity" HeaderText="Last Teacher Activity" UniqueName="last_teacher_activity"
                                              DataType="System.DateTime" DataFormatString="{0:MMM dd, yyyy hh:mm tt}" HeaderStyle-Width="100"/>
                    <telerik:GridBoundColumn DataField="GRADE" SortExpression="GRADE" HeaderText="Grade" UniqueName="GRADE" HeaderStyle-Width="70"/>
                    <telerik:GridBoundColumn DataField="points_possible" SortExpression="points_possible" HeaderText="Points Possible" UniqueName="points_possible" HeaderStyle-Width="70"/>
                    <telerik:GridBoundColumn DataField="COMMENTS" SortExpression="COMMENTS" HeaderText="Comments" UniqueName="COMMENTS"  HeaderStyle-Width="304" />
                  </Columns>
	              </MasterTableView>

                <ClientSettings>
                  <Scrolling AllowScroll="True" UseStaticHeaders="True" SaveScrollPosition="True"/>
                </ClientSettings>
              </telerik:radgrid>
	        </td>
        </tr>
    </table>
</asp:Content>
